<!DOCTYPE HTML>
<html>

	<head>
        <?php
        	$file_handle = fopen("header.txt", "r");
			
			while (!feof($file_handle)) {
   				$line = fgets($file_handle);
   				echo $line;
			}
			
			fclose($file_handle);
        ?>
                
        <script type="text/javascript">
  			var _gaq = _gaq || [];
  			_gaq.push(['_setAccount', 'UA-35894224-1']);
  			_gaq.push(['_trackPageview']);

  			(function() {
    			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  			})();
		</script>
	</head>

<body>
<div id="main">
<div id="header">
<div id="logo">
<div id="logo_text">
        <?php
        	$file_handle = fopen("logo.txt", "r");
			
			while (!feof($file_handle)) {
   				$line = fgets($file_handle);
   				echo $line;
			}
			
			fclose($file_handle);
        ?>
</div>
</div>
<div id="menubar">
<ul id="menu">
	<!-- put class="selected" in the li tag for the selected page - to highlight which page you're on -->
	<li><a href="index.php">Home</a></li>
	<li><a href="bio.php">Bio</a></li>
	<li><a href="curriculum.php">Curriculum</a></li>
	<li><a href="experience.php">Experience</a></li>
	<li><a href="teaching.php">Teaching</a></li>
	<li><a href="publications.php">Publications</a></li>
	<li class="selected"><a href="contact.php">Contact</a></li>
</ul>
</div>
</div>
<div id="site_content">
<div class="sidebar">
        <?php
        	$file_handle = fopen("latestNews.txt", "r");
			
			while (!feof($file_handle)) {
   				$line = fgets($file_handle);
   				echo $line;
			}
			
			fclose($file_handle);
        ?>
</div>




     <div id="content">
        <!-- page content -->
        <h1>Contact</h1>
        <p>Below you can contact Hernani Costa</p>
        <form action="sendMail.php" method="post">
          <div class="form_settings">
            <p><span>Name</span><input class="contact" type="text" name="name" value="" /></p>
            <p><span>Email Address</span><input class="contact" type="text" name="email" value="" /></p>
            <p><span>Subject</span><input class="contact" type="text" name="subject" value="" /></p>
            <p><span>Message</span><textarea class="contact textarea" rows="8" cols="50" name="message"></textarea></p>
            <p style="padding-top: 15px"><span>&nbsp;</span><input class="submit" type="submit" name="contact_submitted" value="submit" /></p>
          </div>
        </form>
      </div>
    </div>




		<div id="content_footer"></div>
		<div id="footer">
        <?php
        	$file_handle = fopen("footer.txt", "r");
			
			while (!feof($file_handle)) {
   				$line = fgets($file_handle);
   				echo $line;
			}
			
			fclose($file_handle);
        ?>
		</div>
	</div>
</body>
</html>